package gui.Layouts;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Aufgabe1 extends JFrame {
	
	
	public Aufgabe1(){
		super("Borderlayout");
		this.setBounds(100,100,100,100);
		JPanel panel = new JPanel();
		panel.setLayout(new BorderLayout());
		
		JPanel listpanel = new JPanel();
		listpanel.setLayout(new GridLayout(1,3));
		
	JButton n = new JButton("North");
	JButton w = new JButton("West");
	JButton e = new JButton("East");
	JButton c = new JButton("Center");
	
	listpanel.add(new JButton("Eins"));
	listpanel.add(new JButton("Zwei"));
	listpanel.add(new JButton("oder Drei"));
	
	
	panel.add(n, BorderLayout.NORTH);
	panel.add(w, BorderLayout.WEST);
	panel.add(listpanel, BorderLayout.SOUTH);
	panel.add(e, BorderLayout.EAST);
	panel.add(c);
	this.add(panel);
	this.setVisible(true);
		
	}
	
	
	public static void main(String[] args) {
		
		new Aufgabe1();
	}

}
